home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: newshost.grace.cri.nz!maths!peterm
- From: peterm@maths.grace.cri.nz (Peter McGavin)
- Subject: Re: Amiga doesn`t need Pl
- Message-ID: <PETERM.96Mar2084112@tui.maths.irl.cri.nz>
- Date: 01 Mar 1996 19:41:11 GMT
- Distribution: world
- References: <john.hendrikx.4hkw@grafix.xs4all.nl>
- <PETERM.96Feb29104046@tui.maths.irl.cri.nz>
- Organization: Industrial Research Ltd
- In-reply-to: peterm@maths.grace.cri.nz's message of 28 Feb 1996 21:40:46 GMT
-
- I wrote:
- >john.hendrikx@grafix.xs4all.nl (John Hendrikx) writes:
- >>In a message of 25 Feb 96 Peter McGavin wrote to All:
- >> PM> Minor point, perhaps, but I now believe it _is_ possible to blit a
- >> PM> smaller part of the whole screen (horizontally) with C2P.
- >>
- >>This final blitter pass, would this be an additional blitter-pass 'normally'
- >>not needed? If so it would be possible. Otherwise I think it isn't possible
- >>as the Destination modulo MUST be zero (remember that only 1 word is copied
- >>before each modulo is updated -- the BlitterWindow is after all only 1 word
- >>wide, but VERY high, which is what makes the BlitterC2P trick work in the first
- >>place).
- >
- >Whoops, I think you are right after all. To do it in the final
- >(usually 4th) blitter pass would require a blit for every scanline.
-
- Golly, did I really write that? John's message threw me by saying the
- blit had to be 1 word wide. Yet I was almost certain I had worked it
- out earlier and was quite puzzled by it not being possible after all.
- Anyway, I just worked it out again. The _source_ modulos are 0 in the
- final (usually 4th) C2P pass, hence we can set the width and height to
- anything we want that multiplies to the right total. The width
- doesn't have to be 1 in the final pass. We can set width, height and
- destination modulo to match the destination window and bitmap as I
- said in the first place. So it _is_ possible to blit a smaller part
- of the whole screen (horizontally) with C2P.
- --
- Peter McGavin. (p.mcgavin@irl.cri.nz)
-
-